package wuji.demospringclouduserprovider.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import wuji.pojo.User;

import java.util.List;

@Mapper
public interface UserDao {

    @Select("select * from test_user where username=#{username} and upwd=#{upwd}")
    User getUserByNameAndPassword(@Param("username") String username, @Param("upwd") String password) ;

    @Select("select * from test_user")
    List<User> findAllUsers() ;
}
